columnviewlayout: Handle for_size propertly
authorMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jun 2020 15:34:51 +0000 (11:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jun 2020 17:27:50 +0000 (13:27 -0400)
commit40f6a9d830cbbf40b6c7d0e53054ddb24cd8688d
treec54cfac71e8c43bf1546f6f70e643569c13644b6
parentf6da3246708ad2a40c7be35adf15444200f2447d
columnviewlayout: Handle for_size propertly

When we are given a for_size as width for the whole
column view, we need to distribute it over the columns
as gtk_column_view_allocate_columns would, in order
to find out which for_size to give to each cell.

This is a bit recursive, but works. Since we are
doing this recursion for every row, we should consider
adding a cache for those distributed widths.
gtk/gtkcolumnviewlayout.c